﻿using System;

namespace AIFSContentManagementSystem.Criteria
{
    public sealed class StringExpression : Expression
    {        
        public override ExpressionDataType DataType
        {
            get
            {
                return ExpressionDataType.STRING;
            }
        }

        protected override bool CanCompare(Expression other)
        {
            if (!(other is StringExpression))
                return false;

            return true;
        }

        protected override int CompareTo(Expression other)
        {
            int cmpResult = this.ExpressionElement.RightOperand.CompareTo(other.ExpressionElement.RightOperand);
            return cmpResult;
        }
    }
}
